<?php

function returnMessage($code = 1, $message = "", $data = array())
{
    die(json_encode(array(
        "code" => $code,
        "message" => $message,
        "data" => $data
    )));
}

function setSetting($module, $data)
{
    global $temple_settings;
    $temple_settings[$module] = $data;
}
?>